<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="admin/updateReserveFees.htm" id="form" theme="simple" method="post">
	<table width="100%">
		<tr>
        	<td height="40" class="sectionheading bottom-border">Reserve Fees</td>
		</tr>
		<tr>
			<td valign="top" class="verdana12blacknormal">
				Please enter the Reserve Auctions listing fees. Do not include any
				currency symbols, only digits and the decimal point or comma.
			</td>
		</tr>
		<tr>
			<td height="8"></td>
		</tr>
		<tr>
			<td valign="top" width="100%">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="Textfiled-border">
					<tbody>
						<tr height="30">
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp;
								<b>#</b>&nbsp;
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp;
								<b>Reserve Price From</b>&nbsp;
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp;
								<b>Reserve PriceTo</b>&nbsp;
							</td>

							<td align="center" bgcolor="#E9E9E9"
								class="verdana12darkgreybold">
								&nbsp;
								<b>Insertion Fee</b>&nbsp;
								<br>
								(total sum)
							</td>
						</tr>

						<s:iterator value="reserveAuctionListingFeesList"
							status="rowstatus">
							<s:hidden name="reserveAuctionListingFeesMap[%{id}].id"
								value="%{id}" />
							<s:set name="classCSS" value="%{'Textfiled-no-border-odd'}" var="classCSS"></s:set>
							<s:set name="bgColor" value="%{'#FFFFFF'}" var="bgColor"></s:set>

							<s:if test="#rowstatus.even">
								<s:set var="classCSS" value="%{'Textfiled-no-border-even'}"></s:set>
								<s:set var="bgColor" value="%{'#F8F8F8'}"></s:set>
							</s:if>

							<tr>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									&nbsp;
									<b><s:property value="%{#rowstatus.index + 1}" />
									</b>&nbsp;
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="reserveAuctionListingFeesMap[%{id}].reservePriceFrom"
										value="%{reservePriceFrom}" size="15" />
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="reserveAuctionListingFeesMap[%{id}].reservePriceTo"
										value="%{reservePriceTo}" size="15" />
								</td>
								<td align="center" class="verdana12Greybold" bgcolor="<s:property value="%{bgColor}" />">
									<s:textfield theme="simple" cssClass="%{classCSS}"
										name="reserveAuctionListingFeesMap[%{id}].insertionFee"
										value="%{insertionFee}" size="15" />
								</td>
							</tr>
						</s:iterator>
					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td width="100%" class="verdana12blacknormal">
				<p align="justify">
					<b>Reserve Price Fees<br> </b>The insertion Fee is based upon
					the reserve price of the item listed by the seller.
				</p>
				<p align="justify">
					<b>Dutch Listings<br> </b>No insertion Fee for Dutch Auctions.
					<br>
					<br>
					Please note: Reserve Price Auctions are not available for Dutch
					Auctions.
					<br>
					<br>
				</p>
			</td>
		</tr>
		<tr>
			<td align="center" width="100%">
				<s:submit theme="simple" type="image" src="../Admin-Images/save-chagnes-button.gif" value="Save Changes" />
				<img onclick="document.getElementById('form').reset();" style="cursor: pointer;" src="../Admin-Images/reset-button.gif" alt="Cancel" />
    			<img onclick="history.go(-1);" style="cursor: pointer;" src="../Admin-Images/cancel_btn.gif" alt="Cancel" />
			</td>
		</tr>
	</table>
</s:form>